﻿/// <reference path="../_references.js" />

(function (e) {
    e.repositories = e.repositories || {};
    e.repositories.company = function () {
    };
    e.repositories.company.prototype = {
        addCompany: function (company, callback) {
            e.apiRepository.post("Company", company, callback);
        },
        getAllCompanies: function (callback) {
            e.apiRepository.getAll("Company", callback);
        },
        getCompanyById: function (id, callback) {
            e.apiRepository.getOne("Company", id, callback);
        },
        updateCompany: function (company, callback) {
            e.apiRepository.update("Company", company, callback);
        },
        deleteCompany: function (id, callback) {
            e.apiRepository.del("Company", id, callback);
        }
    };
} (this.eg = this.eg || {}));